<title> Ajax </title>
<body vlink=#cccccc link=red> 
<center>
<form method="POST">
Number of Story: <input type=text name=n size=6>
</form>
</center>
<hr>
<?
IF ($_SERVER[REQUEST_METHOD] != "POST") { EXIT(-1);}
$n = $_POST['n'];
$data = file_get_contents("backup.xml");
preg_match_all('/<content:encoded>(.*?)<\/content:encoded>/s', $data, $result);
preg_match_all('/<title>(.*?)<\/title>/', $data, $title);
$result = $result[0];
$title = $title[0];
//echo count($title);
//echo count($result);
echo "<center><h2>".$n."-".substr($title[$n], 7, -8)."</h2></center>";
echo "\r\n";
//echo $result[7];
echo substr($result[$n], 26, -21); 
//print_r($result);
?>